package com.erp.auto.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.erp.auto.domain.ErpAutoEvaluationAssociation;
import com.erp.auto.mapper.ErpAutoEvaluationAssociationMapper;
import com.erp.auto.service.ErpAutoEvaluationAssociationService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 自动测评商品关联表
 *
 * @author WXX
 * @date 2023-12-27 08:59:43
 */
@Service
@AllArgsConstructor
public class ErpAutoEvaluationAssociationServiceImpl  implements ErpAutoEvaluationAssociationService {

    private final ErpAutoEvaluationAssociationMapper erpAutoEvaluationAssociationMapper;

    @Override
    public List<ErpAutoEvaluationAssociation> getList(ErpAutoEvaluationAssociation association) {
        LambdaQueryWrapper<ErpAutoEvaluationAssociation> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(association.getConfigId() != null,ErpAutoEvaluationAssociation::getConfigId,association.getConfigId());
        return erpAutoEvaluationAssociationMapper.selectList(queryWrapper);

    }
}
